programming4us
           
 
 
SQL Server

SQL Server 2008 : Performance Data Collection (part 2)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/7/2010 7:47:34 PM

Configuring Data Collection

Data collection is configured using the MDW as the target for collected data. Data collection is performed on every configured server using a usermode process called dcexec.exe. This standalone process is responsible for collecting data as defined in a collection set. Two types of data collections can be defined: System or Custom data collections. There are three system data collections listed in Table 2.

Table 2. System Data Collections
System Data Collection SetDescription
Disk UsageTracks disk space usage information for data and log files
Server ActivityRecords systemwide performance data such as memory, disk, CPU, and data from the SQL Server operating system
Query StatisticsStores queries and execution plans for frequently executed or resource-intensive queries

In addition, Administrators can define custom data collections. Custom data collections can consist of one of four collection sets (see Table 3). Custom collection sets can be useful to establish a complete system baseline.

Table 3. Custom Data Collection Sets
SetDescription
T-SQL QueryRuns a query defined by an Administrator and stores the result in the MDW
SQL TraceExecutes a SQL Trace; if configured will upload the trace data to MDW
Performance CountersUsed to collect System Monitor (Performance Monitor) counters related to SQL Server
Query ActivityCollects queries and execution plans; collects same data as Query Statistics

Configuring & Implementing...: Show Caution with Custom Collections Using SQL Trace

Misconfigured SQL Traces can harm server performance. SQL Traces can be very resource intensive when implemented in any form (e.g., SQL Profiler, server side traces, or custom data collectors). Be cautious when adding events and filters to the trace and be aware of the overhead to running a trace.


Data Collection Caching

Data collection can be configured in one of two caching modes: either cached or noncached. Depending on the scenario, a number of factors should be considered to decide which mode to configure:

  • Cached mode: Data collection runs on one schedule and temporarily stores collected data on the server. Periodically (on a separate schedule) a different job will upload data from the temporary location to the MDW.

  • Noncached mode: Data collection and data upload run on the same schedule. Data is collected and directly uploaded to the MDW.

These logins and roles are created on the server carrying out data collection (see Table 4).

Table 4. Data Collection Roles and Permissions
RolePermissions
dc_adminComplete administrative permissions (Create, Read, Update, Delete)
dc_operatorFor Administrator running and configuring Collection Sets (Read, Update access)
dc_proxyRequired to list and view collector packages

Management Data Warehouse Reports

The real benefit of the performance data collection feature is reporting (see Figure 7). The reports present the data available in the MDW and reveal the true value of the feature. The three system data collections each have a predefined report available, and other reports can be built as required. The MDW reports can be useful for establishing a system baseline, troubleshooting, and capacity planning.

Figure 7. Reporting Available on MDW


The performance data collection feature enables DBAs to monitor and report on system performance, availability, and capacity on a number of servers with relative ease and simplicity. The Performance Data Collection solution is flexible and adaptable with custom collections and reports configurable if required.

Exercise . Performance Data Collector

In this exercise you will configure the management data warehouse and performance data collector for a single server.

  1. Start SQL Server Management Studio.

  2. Expand the Management folder.

  3. Right-click Data Collection and choose Manage Data Warehouse.

  4. Follow the Wizard, selecting Create Management Data Warehouse option.

  5. Create a new database for the MDW.

  6. Follow remaining step to complete the wizard.

Now, configure data collection for an instance:

  1. Start Management Studio on the target instance.

  2. Expand the Management folder.

  3. Right-click and enable Data Collection.

  4. Right-click and choose Manage Data Warehouse.

  5. Follow the wizard selecting Setup data collection.

  6. Specify the name and credentials for the server configured as the MDW in the previous steps.

  7. Follow remaining steps to complete the wizard.

View Management Reports based on the MDW:

  1. Connect to the SQL instance hosting the MDW.

  2. Expand the Management folder.

  3. Right-click on Data Collection.

  4. Choose Reports > Management Data Warehouse > Server Activity History.

Other -----------------
- SQL Server 2008 : Performance Tuning - Partitioning
- SQL Server 2008 : Guide to the DYNAMIC Management Views (DMVs)
- SQL Server 2008 : Managing Security - Service Accounts and Permissions
- SQL Server 2008 : Managing Security - Security and SQL Agent
- SQL Server 2008 : Implementing Transactions - Transaction Traps
- SQL Server 2008 : Implementing Transactions - Deadlocking
- SQL Azure Primer (part 4) - Creating Logins and Users
- SQL Azure Primer (part 3) - Connecting with SQL Server Management Studio
- SQL Azure Primer (part 2) - Configuring the Firewall
- SQL Azure Primer (part 1)
- SQL Server 2008 : Implementing Transactions - Locking
- SQL Server 2008 : Isolation Level Explained
- SQL Server 2008 : ACID
- SQL Server 2008 : Transactions Explained
- SQL server 2008 : Handling Errors (part 3)
- SQL server 2008 : Handling Errors (part 2)
- SQL server 2008 : Handling Errors (part 1)
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 5) - Filtered Indexes
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 4) - Indexing JOIN Criteria
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 3) - Covering Your Queries
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us